/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.knezevic.realestate.service;

import com.knezevic.realestate.Member;
import java.io.Serializable;
import java.util.Collection;
import org.apache.tapestry5.hibernate.annotations.CommitAfter;

/**
 *
 * @author Nemanja
 */
public interface Members {
    @CommitAfter
    Member save(Member member);
    @CommitAfter
    void update(Member member);
    @CommitAfter
    void deleteMember(Member member);
    Collection<Member> retrieve();
    Collection<Member> retrieveRegularMembers();
    Member retrieve(Serializable id);
}
